package com.woniuxy.orderserver.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(name = "consume-server")
public interface ConsumeFeign {
    @PostMapping("/payPlan")
    Boolean payPlan(@RequestParam("userId") Long userId,@RequestParam("orderId") Long orderId,@RequestParam("amount") BigDecimal amount);
}
